package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ShopList implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String shopName;

    /**
     * 商品图片
     */
    private String shopImages;

    /**
     * 商品介绍
     */
    private String shopTitle;

    /**
     * 0-未开始  1-上架 2-抢购中  3-已下架
     */
    private Integer status;

    /**
     * 商品库存
     */
    private Integer shopTotal;

    /**
     * 开始时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT-8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 展示时间
     */
    private Date showTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /*剩余时间戳*/
    private Long shopOpenTime;

    /*上架状态*/
    private int shopStatus;

}
